package com.kwer.demo;

public class HelloWorldAction {

    private String name;

    public String execute() throws Exception {

        if ("".equals(getName()) || getName() == null) {
            return "error";
        }
        return "success";
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}